# name : proc mixed repeated for mmrm
# key : mixed.mmrm.repeated.
# contributor: Shuguang Sun
# --
proc mixed data=${1:dsin}${2: method=reml covtest nobound IC;}
class $5 $6 $8$0;
model ${3:aval} = ${4:blval} ${5:trt01p} ${6:avisit} $5 * $6 / s covb ddfm=${7:$$(yas-choose-value '("BETWITHIN" "CONTAIN" "KENWARDROGER" "KENWARDROGER2" "RESIDUAL" "SATTERTHWAITE"))};
repeated $6 / subject=${8:usubjid} type=${9:$$(yas-choose-value '("CS" "UN" "AR(1)" "VC"))} r;
lsmeans $5 * $6 / pdiff cl;
run;
